﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AcctrueWMS.Foundation.Render
{
    /// <summary>
    /// 帮助VTL引擎进行如字符串拼接、日期查询等
    /// </summary>
    public class RenderHelper
    {
        VTLModelRender vtlRender=new VTLModelRender();
        public string Format(string format, params object[] args)
        {
            return String.Format(format, args);
        }

        public DateTime Now
        {
            get
            {
                return DateTime.Now;
            }
        }

        //Regex dateReg = new Regex(@"day=-2;years=2;month=-2;");
        //public string GetDateByExpr(string expr)
        //{

        //}

        //public string GetDate(string foramt)
        //{
        //    return DateTime.Now.ToString(format);
        //}

        //public string GetDate(string format, string expr)
        //{

        //}
    }
}
